package com.lxs.mall.feign;

import com.lxs.common.utils.R;
import com.lxs.mall.vo.LoginVO;
import com.lxs.mall.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("mall-member")
public interface MemberFeignService {
    /**
     * 会员注册
     * @return
     */
    @PostMapping("/member/member/register")
    public R register(@RequestBody UserRegisterVo vo);

    @PostMapping("/member/member/login")
    public R login(LoginVO vo);
}
